package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TestSubTeacherStuMapper;
import com.ruoyi.system.domain.TestSubTeacherStu;
import com.ruoyi.system.service.ITestSubTeacherStuService;

/**
 * 课程学生老师关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-21
 */
@Service
public class TestSubTeacherStuServiceImpl implements ITestSubTeacherStuService 
{
    @Autowired
    private TestSubTeacherStuMapper testSubTeacherStuMapper;

    /**
     * 查询课程学生老师关联表
     * 
     * @param id 课程学生老师关联表主键
     * @return 课程学生老师关联表
     */
    @Override
    public TestSubTeacherStu selectTestSubTeacherStuById(Long id)
    {
        return testSubTeacherStuMapper.selectTestSubTeacherStuById(id);
    }

    /**
     * 查询课程学生老师关联表列表
     * 
     * @param testSubTeacherStu 课程学生老师关联表
     * @return 课程学生老师关联表
     */
    @Override
    public List<TestSubTeacherStu> selectTestSubTeacherStuList(TestSubTeacherStu testSubTeacherStu)
    {
        return testSubTeacherStuMapper.selectTestSubTeacherStuList(testSubTeacherStu);
    }

    /**
     * 新增课程学生老师关联表
     * 
     * @param testSubTeacherStu 课程学生老师关联表
     * @return 结果
     */
    @Override
    public int insertTestSubTeacherStu(TestSubTeacherStu testSubTeacherStu)
    {
        return testSubTeacherStuMapper.insertTestSubTeacherStu(testSubTeacherStu);
    }

    /**
     * 修改课程学生老师关联表
     * 
     * @param testSubTeacherStu 课程学生老师关联表
     * @return 结果
     */
    @Override
    public int updateTestSubTeacherStu(TestSubTeacherStu testSubTeacherStu)
    {
        return testSubTeacherStuMapper.updateTestSubTeacherStu(testSubTeacherStu);
    }

    /**
     * 批量删除课程学生老师关联表
     * 
     * @param ids 需要删除的课程学生老师关联表主键
     * @return 结果
     */
    @Override
    public int deleteTestSubTeacherStuByIds(Long[] ids)
    {
        return testSubTeacherStuMapper.deleteTestSubTeacherStuByIds(ids);
    }

    /**
     * 删除课程学生老师关联表信息
     * 
     * @param id 课程学生老师关联表主键
     * @return 结果
     */
    @Override
    public int deleteTestSubTeacherStuById(Long id)
    {
        return testSubTeacherStuMapper.deleteTestSubTeacherStuById(id);
    }
}
